package com.zmis.model.menu;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import com.zmis.core.entity.BaseEntity;

/**
 * 菜单
 * 
 * 2012-9-23 下午11:45:55
 * @author ricker.zlj
 */
@Entity
@Table(name="SYS_MENU")
public class MenuEntity extends BaseEntity {
	private int menuId;
	private String menuName;
	private String icon;
	
	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	@Column(name="menu_id")
	public int getMenuId() {
		return menuId;
	}
	public void setMenuId(int menuId) {
		this.menuId = menuId;
	}
	
	@Column(name="menu_name", length=30, nullable=false)
	public String getMenuName() {
		return menuName;
	}
	public void setMenuName(String menuName) {
		this.menuName = menuName;
	}
	
	@Column(name="menu_icon", length=50, nullable=true)
	public String getIcon() {
		return icon;
	}
	public void setIcon(String icon) {
		this.icon = icon;
	}
	
	
}
